<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
header("Content-Type:text/html;charset=utf-8");
$servername = "127.0.0.1";
$username = "root";
$password = "";
$dbname = "wish";


//创建连接
$conn = new mysqli($servername,$username,$password,$dbname);
//检测连接
if ($conn->connect_error){
    die("连接失败：".$conn->connect_error);
}
$conn->query("set name 'uts8'");
?>

